import defaultPic from '../../imgs/default.png'

export const Image = (props) => {
    // console.log('Image', props)
    const { height, width, src, objectFit, opacity, ...style } = props;
    return <div style={{ height: height ? height + 'px' : undefined, width: width ? width : undefined, opacity: opacity/100 }}><img  width={width} height={height} style={{ objectFit, ...style }} src={src || defaultPic}/></div>
}